package com.micro.school.system.controller;

import com.micro.school.system.api.domain.vo.SchoolInfoVos;
import com.micro.school.system.domain.SchoolInfo;
import com.micro.school.system.service.SchoolInfoService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/schoolInfo")
public class SchoolInfoController {

    @Resource
    private SchoolInfoService schoolInfoService;

    @GetMapping("/selectSchoolById")
    public SchoolInfoVos selectSchoolById(@RequestParam("id") Long id) {
        SchoolInfoVos schoolInfo = schoolInfoService.queryVosById(id);
        return schoolInfo;
    }
}
